package com.zzf.mall.feign;

import com.zzf.common.utils.R;
import com.zzf.mall.vo.SocialUser;
import com.zzf.mall.vo.UserRegisterVO;
import com.zzf.mall.vo.loginVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author 赵振飞
 * @Date 2022/10/19
 * @Version 1.0
 * 会员服务
 */
@FeignClient("mall-member")
public interface MemberFeginService {

    @PostMapping("/member/member/register")
    public R register(@RequestBody UserRegisterVO vo);

    @RequestMapping("/member/member/login")
    public R login(@RequestBody loginVO vo);

    @RequestMapping("/member/member/oauth2/login")
    public R socialLogin(@RequestBody SocialUser vo);

}
